package com.parse.ast;

import com.lex.Token;

public class VariableASTNode extends ASTNode{


    public enum VariableType{
        FIELD,//属性
        LOCAL_VARIABLE,//局部变量
        METHODNAME,//方法名
    }

    public VariableType variableType;
    public String variableName;
    public ASTNode variableDataType;
    public ASTNode variableValue;

    public ASTNode getVariableValue() {
        return variableValue;
    }

    public void setVariableValue(ASTNode valueNode) {
    }

    public VariableType getVariableType() {
        return variableType;
    }

    public void setVariableType(VariableType variableType) {
        this.variableType = variableType;
    }

    public String getVariableName() {
        return variableName;
    }

    public void setVariableName(String variableName) {
        this.variableName = variableName;
    }

    public ASTNode getVariableDataType() {
        return variableDataType;
    }

    public void setVariableDataType(ASTNode variableDataType) {
        this.variableDataType = variableDataType;
    }

    public VariableASTNode(ASTNodeType type) {
        super(type);
    }

    public VariableASTNode(ASTNodeType type, Token token) {
        super(type, token);
    }

    public VariableASTNode(ASTNodeType type, Token token, ASTNode parent) {
        super(type, token, parent);
    }
}
